{% macro pagination(paginator, options) %}
    {% if paginator.haveToPaginate()|default(false) %}
        <div class="row">
            <div class="col-xs-9">
                {{ pagerfanta(paginator, 'twitter_bootstrap3_translated', options|default({})) }}
            </div>

            <div class="col-xs-3">
                <div class="pull-right">
                    <div class="btn-group paginator">
                        {{ bluehouse_resource_paginate(paginator, [20,30,50]) }}
                    </div>
                </div>
            </div>
        </div>
    {% endif %}
{% endmacro %}